package src.main.java.com.pms.gui.dialog.appointment;

import javax.swing.*;

public class CremationAppointmentDialog extends AppointmentDialog {
    
    public CremationAppointmentDialog(JFrame parent) {
        super(parent, "火化预约", "火化");
    }

    @Override
    protected boolean makeAppointment(int petId) throws Exception {
        try {
            appointmentService.addCremationAppointmentByGUI(petId);
            return true;
        } catch (Exception e)
        {
            return false;
        }
    }
}
